package main

import (
	"fmt"
	"os"
)

func main() {
	file, err := os.OpenFile("../file/20211028.vim", os.O_RDWR, 6)
	if err != nil {
		fmt.Println("openFile faild, err:", err)
		return
	}

	n, err := file.WriteString("hello world \n")
	if err != nil {
		fmt.Println("writeSting  faild, err:", err)
		return
	}
	fmt.Println("writeSting success  n:", n)
}
